<!-- 
  视频 111

  路由传参
-->
<template>
  <div>
    <h2>我是profile</h2>
    <h3>{{$route.query.name}}</h3>
    <h3>{{$route.query.age}}</h3>
    <h3>{{$route.query.height}}</h3>
  </div>
</template>

<script>
  export default {
    name: 'Profile',
    //如果不使用 keep-alive, 每次进来都会被创建。频繁的创建/销毁
    created() {
      console.log('Profile created')
    },
    destroyed() {
      console.log('Profile destroyed')
    },
  }
</script>